#include <iostream>

#include<string>
using namespace std;
int count1[30];
int main()
{
    string s1;
    cin >> s1;
    for (auto ch : s1)
    {
        count1[ch - 'A']++;
    }
    string s2;
    cin >> s2;
    for (auto ch : s2)
    {
        if (!count1[ch - 'A'])
        {
            cout << "No" << endl;
            return 0;
        }
        else count1[ch - 'A']--;
    }
    cout << "Yes" << endl;
    return 0;
}